<?php
$admin = "123";
$password = '123456';
if (empty($_POST['admin'])||empty($_POST['password'])) {
    exit("用户名或密码为空");
}
if ($admin==$_POST['admin']&&$password==$_POST['password']) {
    exit("登录成功");
}
exit("用户名或密码错误");
?>